<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/config.inc.php');
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/top.inc.php');
?>
<p>
	<a href="index.php">&lt;&lt; Back to Subjects Portal</a><br />
</p>
<h1>Delete Subject</h1>

<?php

//get num_rows currently in subjects table
$subject_id = $_GET['id'];

$i = 0;

//select statement
$query="SELECT * FROM course_subjects WHERE id='$subject_id'";
$result = mysql_query($query);


$subject_name=mysql_result($result,$i,"subject_title");

echo "<p>";
echo "Are you sure you want to delete <b>$subject_name?</p>";

echo "<form action='delete_do.php' method='get'>";
echo "<input type='hidden' name='id' value='$subject_id'>";
echo "<p><input type='submit' value='Yes'></p>";
echo '</form>';





?>



<?php
	require_once($_SERVER['DOCUMENT_ROOT'].'uno-course-scheduler/include/bottom.inc.php');
?>